var index;
$(function(){
	
	index = parent.layer.getFrameIndex(window.name);
	
//	getSelectLectrueType("#lectureType");
	
	 $('.submitButton_Bottom span').on('click',function(){
	    	
		 if($('#lectureInfoForm').valid()){
    		 $(this).css('pointer-events','none').css('opacity','0.2');
    		 $.ajax({
					url : webroot+ "/lecture/insertLectureInfo.do",
					data : $('#lectureInfoForm').serializeObject(),
					type : 'POST',
					dataType : 'json',
					success : function(dataResult) {
						parent.layer.msg(dataResult.msg);
						$('.submitButton_Bottom span').removeAttr("style");
						if(dataResult.type=='2'){
							parent.lectureInfoTable().draw();
							parent.layer.close(index);
						}
					}
				});
    	 }
     	
	 });
});



